﻿using System.Runtime.Serialization;
using System.Windows.Media.Media3D;
namespace GameBoard
{
    [DataContract]
    public class TubeVisualFactory : BaseVisualFactory
    {
        public TubeVisualFactory(TubeVisualData data) : base(data)
        {
        }

        public override ModelVisual3D MakeVisual()
        {
            var tv = new TubeVisual();
            tv.PopulateVisualData(VisualData);
            return tv.VisualElement;
        }
    }
}